package com.repair.appraise.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.repair.datasource.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 评论
 * </p>
 *
 * @author 常月乔
 * @since 2024-10-19
 */
@Getter
@Setter
@TableName("comment")
@ApiModel(value = "Comment对象", description = "评论")
public class Comment extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单号")
    @TableField("order_num")
    private String orderNum;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("评分")
    @TableField("rating")
    private Byte rating;

    @ApiModelProperty("评论文本")
    @TableField("comment")
    private String comment;

    @ApiModelProperty("逻辑删除(1为未删除，0为已删除)")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("版本号")
    @TableField("version")
    @Version
    private Integer version;
}
